import {IQuestionHandleQuery , IswapParams} from "@/utils/interface"
import { request } from 'umi';

//获取选中的岗位列表
export let getQuestionHandleList=(params:IQuestionHandleQuery)=>{
    return request("/sxpt/answer/all",{
        params:{
            pageNum: 1,
            pageSize: 10,
            classId: 9,
            searchTitle: '',
            status: '',
        }
    })
}

//取消屏蔽
export let getChecked=(value:string)=>{
    return request("/sxpt/answer/deleteShield",{
        params:{
            answerId:value
        }
    })
}

//屏蔽
export let getCheck=(value:string)=>{
    return request("/sxpt/answer/shield",{
        params:{
            answerId:value
        }
    })
}

//取消精品
export let getQuality=(value:string)=>{
    return request("/sxpt/answer/deleteQuality",{
        params:{
            answerId:value
        }
    })
}

//设为精品
export let getQualit=(value:string)=>{
    return request("/sxpt/answer/quality",{
        params:{
            answerId:value
        }
    })
}

//弹框表格
export let getAnswer=(params:IswapParams)=>{
    return request("/sxpt/askAndAnswer/selectAnswerList",{params})
}